package com.wisdytech.ccdserver.common.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author zuoning
 * @date 2023/9/14 16:43:24
 */
@Component
public class RedisUtil {
    @Autowired
    private RedisTemplate redisTemplate;

    public static RedisTemplate redis;

    @PostConstruct
    public void redisTemple(){
        redis=this.redisTemplate;
    }

}